Added update() and delete() to Connection and fixed upsert() code.