David made a covenant to build a house for the Lord, and the Lord made a covenant to build a house for David. David wanted to make a place for the nation to worship God and for God to dwell in, while God promised to build up a household of kings to David.