update insert work