Make processed_stories_id field single valued to enable sort.
Add trigger to processed_stories.