David legitimacy as king