parse csv file and populate database