Reordering table creation in ORCID to ensure that foreign keys are created correctly