interaction between nodejs and mongoDB