IMPORTANT! add a mysql wrapper to deal with failure of mysql
optimize node-mysql-wrapper
fix mysql error
use original error message
add a flag to figure out whether the action is from direct http request