updating table fields