Format the output for listing tables and queues