added functionality to retrieve items and lists from the database