update save and insert