Defining getUserPkgDB.
Using toPkgInfos.