Reapply patches: ...

- to support real datatype,
- fix SQL logged before assignment in dao_methods.find()