added ability to get the table name from the class name