How to link imported clients as contacts of other clients?

I see in InvoiceNinja, that you can have clients with more than one contact. I have had this at another self-hosted invoicing system as well, but the export/import treated each client and their contacts all as individual clients. How can I go about re-linking contacts back to their clients? I now have 115 clients when I should only have 75 with one or two contacts each.

Sorry, we don’t currently support importing clients with multiple contacts.

Right, so after the import is done, how do I go about re-linking them?

You may be able to manually modify the database to link the contacts however it isn’t advised.

Ok. . . I’m no database expert, so I guess that’s not possible.