Added function for clearing tmp queue table.