Use wfWikiID() so we also get any $wgDBprefix

This only fixes it for local deliveries, not remote ones.

Change-Id: Ib0aef1915dd19e51a5f63fe15936e4e388cc1d44