Select record class based on studyID

Still TODO: pick out the subjectID and "inject" into each record.