Hook "autocommit" update

This update "autocommits" the session in any case of exceptions, 
as raise.notfound() or raise.seeother(), but not for 
sqlalchemy.exc.OperationalError, which is raised in case of
disconnects.