use mongodb from server.js