added mongo and gave controller a variable

@euwest