Introduce a posts repository

Checked for performance, it's pretty damn fast