added more javadocs to Database.java