adds basic CRUD for posts