Add traverse method to query all records of the table