auto populate sql file

SQL file is now automatically called