EDIT TWO: Got it working- heres what you need in case you need to do what I needed to do. Thank you to Nullwaves on the discord!
$forums = new Database($mybbdbname, $mybbhost, $mybbuser, $mybbpass, $mybbprefix) or die("Cannot connect to forum database, please contact an admin immediately.")...