Updates and refactorings

- New edit post view
- Post categories now updated and visible on home view
- aggregation query to gather unique categories
- schema changes for statistics collection