Add distro_name to pkgcache SELECT query.

Fix an issue where the GET request query would fail because
the distro_name column was missing.