“the mouth of the sword.” Used to show great destruction, as if the sword was eating its victims.
[See commentary on Joshua 6:21.]
“and strikes the city with the mouth of the sword.” The city was very defensible, so the fact that David leaves it so quickly likely indicates that there were enemies in the city.