Log all query sql to file.
Delay connectivity checking to make sure sql dumped.
Merge branch 'master', remote branch 'origin/dumpsql'