Updated the output to put 1 mysql query per line