Fix DbStructure so that foreign keys are not created before the table they reference.