save cart items to database