examples implemented in Java. Connecting to database with JDBC.