Handles multiple patch files in a folder.

Still can't handle complex queries, but the code is rewritten to better allow for this (hopefully).