code: def save(self, instance):
          
          cond = tinydb.where('original') == instance.original
          eid = self.update(instance, cond)
          if eid is None:
              return self.create(instance)
          return eid
docs: Save (create or update) the instance to the database
  
          :param instance: an instance of modeled data object