Database classes based on SOCI for C and C++