So David and his men went to Keilah and attacked the Philistines; they killed many of them and took their livestock. And that was how David saved the town.