print SQL if debug is on, closes #76
implement logging
suppress logging during testing
Merge pull request #97 from natebrennand/master

Adds logging