While the state of David's life may not have been all that great, he realized that he needed to reconnect with God.