moved ConnectionRepository to Repository