Fixed a couple more typoes and I believe that the pqxx library used '0' for somethnig else in the rows.