Pass GHC --package-db options to cabal queries

Hello,
Add --package-db paths to the package stack db of the call to getInstalledPackages.

thanks