Add a function for reading the contents of a single package DB.

'getInstalledPackages' requires to pass in a 'PackageDBStack'.