add `remove_duplicates` mysql method