def Database_connection(): try: # PostgreSQL connection Postgres_connection = psycopg2.connect(user="postgres", password=&q