How is David called "a man after God's own heart" although he committed such a horrible sin? It is only through repentance and contrition that God accepts him.