add logic to get all products as JSON object lists from DB