Support nested sqlalchemy transactions