Reconnect to DB if connection closed