C++ interface to PostgreSQL