Write to mongo collection on sync