Added functionality to retrieve all stories from DB in JSON format