Fix customvariable* tables are not case sensitive (mysql)

fixes #6788
Update Changelog

refs #6788
refs #4495
refs #6712