Remote Internet Connection

Hi
What is the best practice to read and write data using PostgreSQL remote Database (send and receive Data)