Extracted update method from importCSV method