remove commented sql
remove keys from removed fields