new method local_changes_2 that reduce changes using vector spec and reformat them to database format