SQL_QUERY = " SELECT columns.table_name,\n tables.table_type,\n columns.table_schema,\n columns.table_catalog,\n columns.column_name,\n columns.is_nullable,\n columns.column_default,\n columns.data_type\n FROM information_schema.columns as columns\n JOIN information_schema.tables as tables\n ON tables.table_name = columns.table_name\n AND tables.table_catalog = columns.table_catalog\n AND tables.table_schema = columns.table_schema\n WHERE columns.table_schema='public';"