Fix output layout of tables() and partitions()