Check number of elements in collections.
Fix test layout.
Merge pull request #190 from kdeldycke/collection-limit-check

Dangerous is an understatement... it appears it will be totally broken.
merged optimizations
Log query (DEBUG level) before execute.
Merge pull request #196 from tarzanjw/feature-log-query-before-execute

Log query (DEBUG level) before execute.
Changed connection error messages to be more informative
Merge pull request #197 from natict/conn_error

Changed connection error messages to be more informative