God prepares David—the man after His heart—to be the model king