Replace deprecated toMysql() with toSql()
Merge pull request #160 from twentronix/fix-depcrecated-tomysql

Fix depcrecated tomysql