refactored the message queue. Now using mongo for the queue