Updating views.py for new sql columns and queries