Write ratings data out to mongodb