update table with result