David's reign as king ended