update node code
use mongodb instead of mysql