added update_quantity_instock in insert