Move MgConnection to raw