set MySQL's SQL_MODE for the opened database