avast updates virus database automatically and the program update asks you permission (by default).
Repair is only for executable some files (.exe, .com) infected with some viruses (not all) and when the restoration info is stored into avast VRDB (virus recovery database).