Given Wikidata ID, Kartotherian geoshapes service should find the right shape even if it is only tagged with the Wikipedia tag, without Wikidata ID.
We could add an extra post-download step, that would go through all rows, find any that are missing Wikidata IDs, and look them up in Wikidata. Ideally we would simply import the whole Wikidata ID database, or use their API to resolve a large set of Wikipedia article names to corresponding Wikidata IDs, and add them to Postgres.