Sample PubNub persistence adapter for MongoDB