Don't clone the db property. Closes #137 and fixes joomla/joomla-platform#1167
Adding UT to confirm fix.
Merge pull request #139 from dongilbert/queryCloneFix

Don't clone the db property. Closes #137 and fixes joomla/joomla-platform#1167