Fixed double write to perishable search db