code: func (dal *DjangoAdminLog) Insert(db XODB) error {
  	var err error
  
  	// if already exist, bail
  	if dal._exists {
  		return errors.New("insert failed: already exists")
  	}
  
  	// sql insert query, primary key provided by sequence
  	const sqlstr = `INSERT INTO public.django_admin_log (` +
  		`action_time, object_id, object_repr, action_flag, change_message, content_type_id, user_id` +
  		`) VALUES (` +
  		`$1, $2, $3, $4, $5, $6, $7` +
  		`) RETURNING id`
  
  	// run query
  	XOLog(sqlstr, dal.ActionTime, dal.ObjectID, dal.ObjectRepr, dal.ActionFlag, dal.ChangeMessage, dal.ContentTypeID, dal.UserID)
  	err = db.QueryRow(sqlstr, dal.ActionTime, dal.ObjectID, dal.ObjectRepr, dal.ActionFlag, dal.ChangeMessage, dal.ContentTypeID, dal.UserID).Scan(&dal.ID)
  	if err != nil {
  		return err
  	}
  
  	// set existence
  	dal._exists = true
  
  	return nil
  }
docs: // Insert inserts the DjangoAdminLog to the database.