David was a sinner who knew how to have his sins covered.