Ported updater scripts to use mysqli