colector writer to mongodb