Separate fetching functionality from database creation.
productIds.txt will be used to store all valid productIds, which is then used
by the scraper to create the database.