Add a Database::getType() function so that we can get rid of $wgDBtype in favour...