change mnesia to dets for queueing system