refactored web app related setup into a node declaration
refactor mongodb setup into a class