implemented carts of user using a couchdb view