Merge pull request #720 from yakolee/master

log maxActive when fail to getconnection
Merge pull request #722 from yakolee/master

improve sql parser