add some more methods to query the record table