I suggest you look through a few different translations, and you will come to the understanding of the original Hebrew. God used Satan to provoke David.
A similar situation happened in the book of Job, and when David had to play the harp for Saul.
Are you going to post these things all day? Just go and look them up. These are very commonly explained by lay-Christians, never-mind theologians.
Are these serious questions of yours, or are you posting these off a Bible contradiction site? Just post the link to the site, and I'll post a link refuting the whole thing at once.