Run refresh_db in latest_version

This ensures that we are getting the latest package data available.
Without this, some pkg.latest states might mistakenly report as
up-to-date when the package really does have an upgrade available.