Added debug logging to generic query
Reused string generation from RandomGenerator
Merge pull request #24 from alendit/master

Refactored random string generation (again).