Switch MySQL scripts to use persistent connections