Added support to multiple databases (DITs)