download historical stock data and store into hdf5 file