df.write \
.format("jdbc") \
.option("url", f"jdbc:postgresql://{host}:{port}/{db_name}") \
.option("dbtable", f"{schema_write}.{table_name}") \
.option("user", f"{username}") \
.option("password", f"{password}") \
.option("driver", 'org.postgresql.Driver') \
.save()