fixing mysql/sqlalchemy issues in the dork database