Update MainConnection.class.php