Updates data file