updates the data table.