Get the right quoting for MySQL commands