Corrected in an error in the database constructor and another in the database method which queries the database to build the arraylist