That is, “helped him accomplish the good things he wanted to do.”
That is, “the capital city of his kingdom.” David lived in Jerusalem and ruled from there.