upate tables