fixed sqlalchemy email deletion