Re-ordered the table creation in the schema file so references work correctly.