Update index.js

node server with mongodb R/W API