replaced code that makes a command line from scratch with a helper function: execMySQL().