improved routes
added connection to mongodb