Added method createClassSQLView()

This is a first step to make querying of template variables "infinitely" faster by scoping properties to separate views based on template id.