Fix for MySQL connection timeouts