removed socket.io.
added async queue to ensure all DB connections are closed after work is done.