Sounds like David is finding fault with the Lord, who seems to be mistreating him and his people.