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