more output, and fixed mistake when writing to the real orgmetadata table instead of tmp