protected static function get_database_and_table() {
        $manager = get_log_manager();
        $store = new \logstore_database\log\store($manager);
        $db = $store->get_extdb();
        return $db ? [$db, $store->get_config_value('dbtable')] : [null, null];
    }