Added code to pull blog posts from mongodb instance.