Got the looping through all layers to work, as well as added the ability to do WHERE queries persistently across loops and on the command line, as well as count_only to see how much work you're about to do