Fixes query_column_info where using schemas;
Upgrade query_for_tables to fetch views