Writing to Mongo working