restore database state after transaction tests