Add CRUD functionality for posts