dbcheck: cache linkIDs and reverse attribute names