fixed run_system_catalog_as_temp_table to create tables in schemas