update fields by table columns