Fix pkgdb_access not getting the right option