[Philip] Implement getPosts mongoDB query