I agree with you only up to the point that David, if true, attended church and exhibited a kind heart to anyone that wanted to be his friend.  Unfortunately these riffraff fell far short of being a friend to David.