Add method to get records by name