requires mysqldb modes