refactored routes file. updated dependencies to include mongo