Solves some bugs on .sql file that creates database