adding import of Connection model in views.py