fix many-to-any associations in mongodb