adjusted order in which tables are created to acommodate for new dependencies.