This is currently not possible. I have added this to the list of enhancement requests though. Myabe we can add an option that allows you to specify a query to return a string that is displayed in the application title whenever your connection changes.