made all exeptions thrown to the top in DB.java