UPDATE thread SET state='opened' WHERE state='done';