Java-based program that accesses a database