PCT-637: Query Analytics does not handle MySQL Restart

Done
@arvenil, what means 5 ?