errors in 'show tables' and metadata queries