update and delete from cart and db