Fixed mysql connection.