Adding users to memberships 2 pro. Have scripted insert ok

I successfully imported 150 users as subscribers into wordpress. I then wrote a script to add a relationship into the _m_membership_relationships table. This worked fine. I had identified the sub_id and level_id for the level and subscription. So all the inserted records are complete.

But the number of members has not changed on the memberships page. When I search memberships, the user comes up, but as a 'visitor'. What else do I need to do to associate that user to the group? Really appreciate your advice. So users exists.. relationship exists.