Update remove.class.php

Deleting one many to many treated the same way as one to one and removed all master or slave connections. This treats many-to-many separately, and removes only matching master->slave sand slave->master connections