What was the list they were saying before "it" happened? Sounded like the shippping areas to me, but really have no idea!
Presumably some sort of verbal code the Doctor could use to undo the memory erasure, a long string of words too random to come up in that...