Made the MySQL connection properties a bit more robust.