select current database after reconnect