a wrapper and emulator for mongoDB