update published state in db when saving article