Refactored Routes configuration. Added some basic logic for Mongo DB.
Did some linting.