This means that David completely destroyed his enemies. These two phrases "like dust on the ground" and "like mud on the streets" have a similar meaning and are used for emphasis.