started refactoring replace_loc create_locmerge function
refactored out locmerge updating
refactored temp3 table from geocode replace loc