An example of Cpp postgres coding