Updated DB2 data provider.
Code cleanup.
Fixed #240.