in reply to Re^3: fetch all data
in thread fetch all data

Good catch. It's been quite some time since I've dabbled with DB stuff. I should have made it clear that my code was untested.