several days before david had ordered that a large number of scaling ladders be constructed , and more than a hundred of these were stacked in piles of twenty spaced out along the front line of david 's army .