Process data from a CSV file and insert into DB