Changed PK for historical_data
now updated checks the latest available date