fix for AssertionError in pyramid

fix for "AssertionError: Transaction must be committed using the transaction manager"
sqlalchemy commits in Pyramid use the transaction manager