Efficiency fix

dm now only attempts to create a table for a given class the first time
it is presented with that class.