added a method to get table name of objects