search.c: support reading queries from a premade file and run locally!