When Jesus went down into hell [Hades] God gave Him the keys of that place.
..................................He not only opened the gates of Hades, but took with Him all the righteous who were confined there, including David the king.
.........................
Jesus is now able to fulfill the promises of God's Covenant with David and, at His Coming [return] He will occupy the Throne of David.