Fix customvariables in DB IDO MySQL are not case sensitive

fixes #6608