add toArray method, fix case issue in mysql script, fix comments in mysql script execution, improve javascript localization