What does the story of David teach us about God's justice and mercy?