Perhaps I'm misunderstanding, or I haven't got all the details regarding system specifications or other such things that would explain why this approach is warranted, but wouldn't a relational database be an appropriate way to approach this problem? My apologies if this has been covered in an earlier post.
Section 66: Cruel, unjust, and dedicated to death.