added connection close code in DBManager.java