Don't rely on the sql type to quote XML columns in PG

Why is `Data` class needed instead of just doing `value.to_s unless value` in the `type_cast_for_database` method?