Multidb connections support
Improve connection restart