Code written with libpqxx-version 7.4.1 install-guide: http://en.wiki.imlint.org/Pqxx_tutorial