moved all queries to .sql files