Java program to read from Oracle database and print out