fix mssql and mysql in code