Properly reflect newly-available packages in check_db

Fixes #12466.