To insert all rows we need to fetch the previously inserted countries and insert their ids with the IP record data.