add get_records method