ACID BSON DB written in Haskell