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