Updated the cart to put the contents into the user database