docs: def _generate_doc(ret):
      '''
      Create a object that will be saved into the database based on
      options.
      '''
  
      # Create a copy of the object that we will return.
      retc = ret.copy()
  
      # Set the ID of the document to be the JID.
      retc["_id"] = ret["jid"]
  
      # Add a timestamp field to the document
      retc["timestamp"] = time.time()
  
      return retc