and Zadok the priest, and his brothers the priests, before the tent of Yahweh in the high place that was at Gibeon,
Of course, the ark belonged in the tabernacle, in the Holy of Holies; and, although David was here unable to bring about the restoration of their true relation to each other, he did set in motion the events that would eventually lead to their being together when the temple was erected by Solomon to replace the tabernacle.  The purpose of the Chronicler in what is written in these chapters is clear enough.  He is telling us how the true worship of God eventually came to be reestablished according to God's original instructions in the Pentateuch.  This, of course, is precisely why radical critics pretend to find so much fault with Chronicles.