clean up queries.sql