Move to postgres backend
Fix traceback when no elements are present
PEP8
Fix unresolved templates and static url in the pycharm inspections. Required a collectstatic, and marking the "templates" directory as a template directory in pycharm.