by slashrsm: MongoDBBackend - organize comments and add/correct most obvious parts of code.