Set up mongo db and initial login routing