add to tray functionality added as well as socket.io events for db updates