Use smart_ip for IP-to-country lookup.

Database comes from http://dev.maxmind.com/geoip/legacy/geolite/
It's the GeoLiteCity database, but this code assumes it will
be called GeoIPCity

See also http://dev.maxmind.com/geoip/legacy/install/city/

To update this, download the new binary db:

wget -O GeoIPCity.dat.gz -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gunzip -f GeoIPCity.dat.gz