Takes MQTT subscription data and stores it in a MongoDB collection.