update posts model