Export SQL queries to .sql file resources; dirty still not working