SQl file with name and frequency, duplicate name rmeoved