update tables working