Added dot to extension
Fix for MySQL gone away error

Added check for mysql gone away error and attempt to reconnect. This seems
to happen on with Mythtv Recorded and Log.