Revert "Two small fixes in db_test"

This reverts commit 6634844dba962b9a150646382f4d6531d1f2440b.