added location deduping to db_populate