use table_name instead of class so that it will work for models with different table names