Remove obsolete code; make code to use one query only if sets.txt is missing