PopulateContentTables: compute sha1 and length if needed.