update views.py handlers and db