Create historicaldata.csv