environment variable struggle for psycopg2