Connection to repository