add note IDs and use them for looking up notes during a history rebuild. NOTE: INVALI...