Fixing a snaffu with mysqli on reconnect