fixed sql file to work on MySQL
merge master into sql fix branch
Merge pull request #11 from satrent/sqlfix

fixed sql file to work on MySQL