creating records from csv file