Even in a cave of despair, David glorifies God.