added toggleMysql() to .functions