Re-ordered the table creation in the schema file so references work correctly.
Merge pull request #509 from teharrison/develop

metadata and api update
Merge pull request #505 from danielolson5/develop

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