contrib: find orphans in wiki_history table