added creatPost and deletePost functions in blogModel