updating view creation to work with latest psycopg2