Update digests in the local database.

Warning: can be very slow on large databases.