convert 'unknown' type in a system query result into 'text' because CREATE TABLE fails with 'unknown' column type