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