1)
Why did he say "Tzadik Atah Mimeni"?
1.
Malbim: He admitted that in the past, David was correct in his case.
2)
What good did David do for Sha'ul?
1.
Malbim: You killed Galyus and fought against Pelishtim amidst your love for me and seeking my benefit.