private static ThreadLocal<String> getDbNameThreadLocal(final boolean isSharedDatabase) {
        return isSharedDatabase
                ? THREAD_LOCAL_SHARED_DB_NAME
                : THREAD_LOCAL_INDEPENDENT_DB_NAME;
    }
Verify there is a connection to the database on the root account.
stroom-test-common/src/main/java/stroom/test/common/util/db/DbTestUtil.java