added an endpoint to get all items from the database