Changing editor sql when table is renamed