update query for postgis 2