David mustered his forces and appointed officers in charge of regiments and companies.