added the ability to write records to csv file so that the csv file can be read using pandas