need some vfalidation of the records returned - think about what that validation should be - certainly you want to make sure there was a record for each of the elements of the template