Fix dbupgrade.php when using MySQL.

- Set $dbUser/$dbPassword in the PDO constructor (thanks to Daniel Berteaud)
- Issue extra SQL commands required for MySQL (requires some refactoring)