if ($tmpid = $this->db->fetchOne($query, array($id, $id))) {
                    $id = $tmpid;
                } else {
                    $this->name = $id;
                    $this->commit();