Using psycopg2 (PostgreSQL), updating Publication model, adding exceptions to populate.py