Object-relational mapping in C++