Little changes for SQL syntaxes and Mod handling