Structured database using class record sets in C++