Update SQL_check_geo_consistency

modified to avoid data duplication, receives value for initial comparison.