by slashrsm: Some improvements to MongoDBBackend.