Petersweb, you should be able to install the vBGallery
vB 3.5.x version and then run the "Upgrade" option of the script.
As long as you're positive that all of the tables are still intact and that all of the /gallery/files images still exist then you should be OK.