Rename test/lib/db.js to test/lib/db_test.js to avoid confusion between it and
the old lib/db.js.

Correct require issues in test/lib/util.js.