Fixed potential problem with MySQL commands.