Update views.py

Added mongodb.