Began refactoring work to encorporate mongo DB on the backend.

- the mongo reference will be passed into the API router