Update status in one query