code: def record(ekey, entry, diff=False):
      
      taskdb = active_db()
      taskdb.record(ekey, entry, diff)
      # The task database save method makes sure that we only save as often as
      # specified in the configuration file.
      taskdb.save()
docs: Records the specified entry to the key-value store under the specified
      entity key.
  
      Args:
          ekey (str): fqdn/uuid of the method/object to store the entry for.
          entry (dict): attributes and values gleaned from the execution.
          diff (bool): when True, the "c" element of `entry` will be diffed
            against previous entries under the same `ekey` if their method
            (attribute "m") matches.