Hello, your task seems interesting to me. I have good experience in writing web-bots so I can complete your project.
I assume you have several URLS of images as you mention with witch I have to find the server location and find out the country and map the country name with list to get country code. further that code will be saved in another column. if there is not match then something default will be saved.
question:
1. do you need program code or only populating database is your only requirement.
2. why do I need to use proxies.
3. In which database data exist. like(PostgreSQL,MySQL, Microsoft)