Fixed MySQL connection not staying alive.
Improve comments