Added a PackageList class to wrap db access