David was a man after God's own heart, but what made him that way?