worked on DataBase.java
modified to close database at program end