history-preserving database and persistent values for Haskell, built on BerkeleyDB