Moved getAllItems function from the database class to the API, since it is not querying the database.