Catch DBDuplicateEntry exception

Since fqn is unique we need to catch this exception

Change-Id: I882701afbebb3f007125bae173748be378e8ca51
Merge "Catch DBDuplicateEntry exception"