add function to save in db for addToCart