add reconnect for all select queries