Moving to mysqldb from sqlalchemy