history_data table definition fix for strict SQL