made importer fixed model relationships

here is the importer also I fixed the relationships in the model