Java program to query SQL database.