Only use $wgDB* variables if they're the first thing on the lines. Prevents picking them up (especially $wgDBname) from other uses.