newQuery, newWishlist functions