updated query to delete duplicates from PROJ_TEMP