pkgdb: Fixed some unit tests.
pkgdb: Putting back some changes I lost

I should really stop rebasing published code, even if I'm the only person
pulling them. If I want to rebase, I can always do that later in another
branch. Or something. Not sure.
checkpkg: Bogus allowed versions for 5.8.

Yann, please review!
pkgdb: Stubs for the integration scripts.
Small changes for unit tests.