Populate _id fields before importing