Fix pkg.installed regression (yumpkg)

The check_db function was not properly handling
noarch packages.