Rollback using berkeleydb as a cache