Table 'thecode1_ubbt.ubbt_VERSION' doesn't exist
Your DB is "thecode1_ubbt" and the table is "ubbt_VERSION", it's saying that the requested table doesn't exist in the database; make sure that the old database was fully restored.
I have another question... I have an old backup of the original MySql database. Is there a way to restore that? Or does the program rebuild that database from the files on the server?
Yes, that's what my initial instructions on upgrading where supposed to do, you where supposed to restore the old database and the indicated files, then run the upgrade script on the old database.