fix switching current database on clicking Test Connection in View Mode