Writing thesis with corrected data after being published
Talk to your advisor.
write the thesis with the most up-to-date data. Analyse the data as a progression if necessary ie including the historical data if applicable - see 1...
contact the journal / editor (may or may not be the same editor you used when publishing originally and decide whether a follow-up paper or an erratum should be the way forward.