public void close() { try { basicstmt.close(); DatabaseFactory.freeConnection(corecxn); DatabaseFactory.freeConnection(chipcxn); corecxn = null; chipcxn = null; basicstmt = null; } catch (SQLException e) { throw new DatabaseException(e.toString(), e); } }