def add_key(rec, idx):
    """Add a key value to the character records."""

    rec["_key"] = rec["id"]
    rec["influential"] = "false" if rec["influential"] == "False" else "true"
    rec["original"] = "false" if rec["original"] == "False" else "true"

    del rec["utc_offset"]
    del rec["id"]

    return rec