cleaned up mainJDB.java

still untested