Starting work on MongoDb adapter: rough first version