Part 1 of moving to django ORM instead of psycopg or sqlite connector.