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.
Merge pull request #5594 from terminalmage/quickfix

Run refresh_db in latest_version