inserts a unit of work into MongoDB.

def insert(self, collection_name, instance):
        """ inserts a unit of work into MongoDB. """
        assert isinstance(instance, SiteStatistics)
        collection = self.ds.connection(collection_name)
        return collection.insert_one(instance.document).inserted_id