Fix for building on HPUX

The current HPUX machine has very little space, creating
both a tdb and a qdbm database for testing makes it run out
of space.
Merge pull request #958 from cduclos/qdbm-tokyo-fix

Fix for building on HPUX
Fixes for building on hpux

Creating 1000 entries is too much on that small hard drive, therefore
reducing it to 2. After all, even one entry will do the trick of
corrupting the file.
Merge pull request #960 from cduclos/db-test-dual-dbs

Db test dual dbs