edit posts in database and return to post page with res.send(204)