err:=db.QueryRow("SELECT id, max_uses, created, expires, inactive FROM userinvites WHERE id = ?",id).Scan(&i.ID,&i.MaxUses,&i.Created,&i.Expires,&i.Inactive)
err:=db.QueryRow("SELECT id, max_uses, created, expires, inactive FROM userinvites WHERE id = ?",id).Scan(&i.ID,&i.MaxUses,&i.Created,&i.Expires,&i.Inactive)