Working show_table_details() function
Abstract output_table_from_sql()