Hopefully fix sql reconnecting