"Attempted to add SQLAlchemy-required code, but still getting errors"