Add NameCollection repository and its unit tests
delete unused code