Updated dev.js and web.js to support mongodb