add another API endpoint to read entries from the database