Fix db secgroup rule create to correctly identify duplicates