“Jerusalem is built as a city.
It is bound firmly together.
The tribes go up to it.
These are the tribes of Yahweh,
As was decreed for Israel.
They were to give thanks
To the name of Yahweh.
There the thrones for judgment were set up.
These are the thrones of the house of David.”
Now we have a full blown eulogy to Jerusalem, a well built city. All the tribes of Israel, those who believed in Yahweh, had a decree to give thanks to the name of Yahweh in Jerusalem. This is the place where the thrones of judgment were, the kings of the house of David. This psalm does not seem to be from David, but about David.