updating extract historical data file