Some refactoring

- Move field binding from RecordIterator to Statement
- Add more calls to get_statement_text () in error situations