update database setting, mark token_id as unique