Simple mysql reconnecting