swapped internal ids for sequences so that they will be placed before table ddl statements in the later SQL export file