fixed bug related to deleting queue on web portal; added check for deleted queues so we can clean out the unique keys before inserting more