Update sql for geo data