import os
import psycopg2

DATABASE_URL = os.environ['DATABASE_URL']

conn = psycopg2.connect(DATABASE_URL, sslmode='require')
cursor = conn.cursor() # cursor needed to perform db ops
cursor.execute("SELECT * FROM Persons;")

my_result = cursor.fetchone();
print(my_result)

cursor.close()
conn.close()


