removed session.commit() statements