make update-record return a maningful value on both success and failure