update to check data in table