Abstracted some of the app related mongo details in the controller