added database support for queue visualization