add resetMysql.js, fix bugs of others