Correct and then you use the tools.php script to rebuild it

That should get you to clear things out and then you reinstall. the first step of install is where we create the tables for vbGallery and hense here is your issue somehow your tables where never created