Fix unit-tests
Port the pkgdb1_to_pkgdb2 script to import the pkgdb2 module