added commit and rollback to AmberDb