only_distinct function

Create functions for data deduplication