BACKLOG-614 - CLONE - If a user attempts to create a new connection with the same name the overwrite dialog displays, when user selects Yes an error occurs

Fix set id of connection for overwriting correctly.
If edit connection and use existing name and confirm overwrite than one of connections is deleted and one is updated.
Merge pull request #487 from annapopova1/BACKLOG-614

@annapopova1 Looks good. Thanks!
Merge pull request #499 from scottyaslan/devBranch

[BACKLOG-290] Service Layer Test for data access AnalysisService
[BACKLOG-290] Service Layer Test for data access AnalysisService