I wouldn't run any mysql steps through the UBB; I'd instead do it through PHPMyAdmin or the MySQL command line.
As for your error, it tells you what the problem is:
Fatal error: require() [function.require]: Failed opening required 'libs/smarty/Smarty.class.php' (include_path='.:') in /var/www/vhosts/dennyp.com/httpdocs/ubbthreads/ubbthreads.php on line 55
It's unable to read the smarty files that SHOULD be in the libs/smarty folder.