That error indicates that there is a problem connecting to the database server with the information in the configuration; open your /includes/config.inc.php file and ensure the correct database information is supplied.
You might also load the
System Requirements Test to ensure that your server is compatable with UBB.threads after the configuration change.