generateClassName() to support pivot tables

Pivot tables require an underscore. This removes that issue and replaces it with a camelCase name, that we then ucfirst to make it pretty.