conn = psycopg2.connect(database="mydb", user="myuser", password="mypassword", host="localhost", port="5432")