Update csv file and sql