update web.js
working with mongodb
test