Using mongodb to store posts