Refactored get_products_for to use select instead of map