connect mongodb and replace jade with ejs