Create DB_final.java

consolidated file, look at the main method for usage