restructured views.py, added ugly database quick view