Modified returning hash reference in show_records