Added table_name utility function