David's reign as king