why Israel accepted David as king