Modifications to the local database: create a summary segments_used table.