Updated foreign Keys for all classes with foreign keys present.