Learning examples of using JDBC with PostgreSQL