server side for nodejs and mongodb