updated pqxx to use the as function and added a configuration example for yaml
updated pqxx to use the as function and added a configuration example for yaml