finalized update db operation