implement addPost/getPosts