Clean up JDBC code, JOIN all data in the database instead of in the Java
code. Use java 7 try with autoclose reducing code cluter.