Check for database in ztest_scan