Fixing sql to use mysql as db storage engine.