Allow SQL handler to autoreconnect
Fix infinite effects