Some more db.php unit tests.