support NoResultFound in sqlalchemy