replace printlns with log statements
mostly untested but complete geoip database code