Building a web app using flask micro framework with mongoDB as backend