share_server_backend_details_set() add entries in db table without checking existing entries with given combinaton of share_server_id and key. This causes duplicate records. Fix it by validating presence of share server id and key. Closes-bug: #2024658 Change-Id: I58dcd9716cf95d0d696c13a4c831df787726bcda (cherry picked from commit37278df338) (cherry picked from commit5fddd2db19) (cherry picked from commitecd14b4e3c) (cherry picked from commitdd0492623c) (cherry picked from commita759ed6936)