Application built in Java for accessing a Database