Port of Freegeoip to Postgresql.