First thought is the create sequence. The foreign key constraint in table A points to a column int table B, but table B hasn't been created yet.

I would generate a SQL script to create all the tables without the constraints, then import the data, then add the constraints.