What was the significance of King David's role as a mediator between God and the people, and how did it impact his reign as king?

King David's role as a mediator between God and the people