pqxx::work t(conn, "trx");
// fetch all songs
pqxx::result res( t.exec("SELECT * FROM songs") );
for (pqxx::result::const_iterator i = res.begin(); i != res.end(); ++i) {
pqxx::work t(conn, "trx");
// fetch all songs
pqxx::result res( t.exec("SELECT * FROM songs") );
for (pqxx::result::const_iterator i = res.begin(); i != res.end(); ++i) {