fix a typo
adjust to recent sqlalchemy changes