select current database upon reconnection