Fixes #14 add 'getSQL' method (documentation incoming)