As the chosen king, the shepherd king and the anointed king, David served the purpose of God in his generation.