Fix deprecation warnings with libpqxx usage

Created by  Nathan van Doorn  on July 5, 2021
RYIPQSWB4KYDLTMETZWEFT5DHSPHUQLQCPSB6LUT6YSJCDEIGJAQC
Change contents