MODS! Please erase this man’s database username and password! Max, it will be erased by a mod, but it probably shouldn’t post the actual database, username and password in the forum!
Maybe try changing:
$bb->mod_rewrite = true;
$bb->mod_rewrite = false;
That will find out if it is just a ‘fancy URL’ problem.