Java program designed to perform SQL queries and functions