Added writer to MongoDB