refactored postService, added tests for postService, changed the way mongo connections are handled
typo