StoryDAO and XmlFileDAO were changed. Additional check conditions  were added