Hi sorry I respond too quick that things were alright. I should have said things looked alright. Being the we have like 4000 categories it took a day to realize many categories did not import, in addition to images for the products.
Recap:
OK ran your suggested script and it moved the categories but we were missing alot categories from the original import and no products had imported.
So I ran Import again to add new elements and we were back to square one with more categories being imported and everything being above the root.
(Mind you I had no errors when using the import Hikashop tool from virtuemart)
SO I decide to do a clean install: Deleted the old installation, updated Virtuemart and Joomla 3.4.6. Reinstalled Hikashop, and did an import.
At first it look good (no errors) but then realized the images didn't import, and thats when we realized we were also missing hundreds of categories and their images.
So... I did another import to import new elements. It imported everything above the root, so now half our categories are above the root and the other half below.
This is were we are, please let me know if you need more information.
It took us months to set these categories up. Manual re-creation is not an option. Only setting up a .csv. Thank you