connect multi-databases bug fixed