update query status