Change connection to repository