A database update task is introduced that checks the indices in the table prg_contacts, and adds missing ones implicitly if needed. The following indices are added on demand:

KEY (,),
KEY (,),
KEY (,(255)),
KEY (,(255)),
KEY (,(255)),
KEY (,(255))

The database update task is run in blocking mode.