Some little refacto and set SQLLogger to null to avoid memory leaks
Merge pull request #14 from c2is/optim-memory

Some little refacto and set SQLLogger to null to avoid memory leaks