support ar_mysql_flexmaster (somewhat obtusely)

allow for the notion that if the @connection instance variable changes
we must re-select the database.