Add documentation to Database.java