Merge pull request #1177 from Eclarian/feature/db_toString_support

Adding Support to Properly Escape Objects that have __toString() magic method