Added retrieveTable method that sorts the database table entries by data in descending order.