David patience before becoming king