separate check for mysqldb