No need to check wgDBtype here: already branched at do_all_updates()