Modified app to load posts from MongoDB instead of hardcoded posts.