fix upgrade.php for mysqli thanks emanuele for help

Signed-off-by: illori illori@simplemachines.org