added mongoDB backend and routing of urls