PCT-637: Query Analytics does not handle MySQL Restart

Done

However, I'm afraid that FileIntervalIter goroutine might access mysqlConn.Connect/Close/Set at the same time as the goroutine with check if mysql was restarted. @daniel-nichter What you think? Should I protect mysql.Connection with mutex?
I don't understand why we need two mock factories? There is only one ConnectionFactory interface - why we need then two mocks? As you can see above one is enough.