Using mongodb and flask to create gui