Summary: David sends a cry of emergency to God. He wants his enemies shamed and disgraced, and the godly (himself included) joyful and praising.
Response: I have to try to take it all in. I want to conveniently ignore the hatred, but it's in there in both directions. David was a warrior and battle was how he knew to solve problems. Maybe if he knew that God had (and still has) other solutions besides violence, he would've written about them instead. If anything, Jesus' insistence on loving enemies stands in stark contrast to David's feelings, which is okay, but I know Who I'm supposed to follow.