Refactored table retrieval and display into RecordSet class.