make index management code case insensitive

with mysql on some systems table name in DDL queries
is case sensitive.
values in table_name column can be case sensitive

It depends on file system and mysql setting.
Merge branch '4.2/indexes-management-case-sensitivity' into 4.2.0-releng