tweaked toggleMysql() in .functions