add pkgDB.cpp pkgDB.h and test for pkg in main.cpp