update contexts c set parent_id = id where parent_id is NULL;
