creates vid as unique index