Add historical data json controller