Export historical data