Moved loadStories to a function and have it load when MongoDB is ready