If you have the proper server software.
I do not think mysqli should be involved since it really did not exist when your ubb version was around.
AFAIK
You are correct; the MySQLi implementation in v7.7 took a significant rewrite of the software database handler to be fully supported, which doesn't exist in UBB.threads6