Update mongoapp.js with proper url and change db.collection