stricter table_exists: now only checks base tables