Divrei Hayamim is a master of rewriting history, and ch.11-12 is a masterpiece. On the backdrop of David's coronation in Hevron, Divrei Hayamim gives us the perfect unity of Israel, all rallied around David, Jerusalem - and all designated by God.
In practice, history was far more messy, but there is a difference between history and collective memory.