put sql queries in files