For more details on how to host this yourself, check out README from mjradwin/geonames-sqlite on GitHub.