update current table when successful, error when not.