Fixed issue #38

Also turned off log SQL statements