I don't know what they told you to do in the tutorial.
But ubb works on PHP 5 as is.
There should be no reason you need to re-create tables.
And maybe the error in your case is that you did not add the dbase name to the query so it has no idea what dbase the table would belong to. Or did not have the dbase open at the time.