Updated to use Django ORM backend. Almost working.