I feel it's better not to collapse the previous database. One of the good things about the tree navigation is its ability to jump between tables in different databases. We will lose this if we make the previous database auto collapse.