Summary: David compares God to a protecting shelter, keeping him safe and his enemies out. Then the usual "I praise You, kill my enemies," etc.
Response: But there is a moment, a glimmer of hope! He asks to be kept alive until he has taught that love of God to the next generation. It doesn't get mentioned again, but I have hope yet for this David guy.