more methods added to DB.java