ODB is a compiler-based object-relational mapping (ORM) system for C++. It allows you to persist C++ objects to a relational database without having to deal with tables, columns, or SQL and without manually writing any mapping code. The C++ code that performs the conversion between persistent classes and their database representation is automatically generated by the ODB compiler. The ODB compiler is a real C++ compiler except that instead of producing assembly or machine code, it generates portable C++, which can in turn be compiled by any C++ compiler. ODB is not a framework. It does not dictate how you should write your application. Rather, it is designed to fit into your style and architecture by only handling C++ object persistence and not interfering with any other functionality.
Metakit is a small, portable database library using a hybrid relational / hierarchical data model with a column-wise internal storage format. For C++, include a single header file and 125 kb DLL or statically link directly. Ideal for desktops, embedded systems, smartphones, and PDAs. Bindings for Python and Tcl. A very mature, stable code base.