See 125 and 128
You are directly contradicting 1 Kings 15:5.
For David had done what was right in the eyes of the LORD and had not failed to keep any of the LORD's commands all the days of his life--except in the case of Uriah the Hittite.
Houston; we have a problem!
David must have been LYING when he stated: "I have sinned greatly by doing this. Now, I beg you, take away the guilt of your servant. I have done a very foolish thing.
(I think LYING is a SIN)
(Here might be a good place to place your James verse to see if it works.)