Fixed database test when db.sql3 files are absent.