King David story analysis