mysql output for pigsty