David’s failure and restoration