Iodb using channels.

This version does not work and fails on iodb:190.
Fixed issue with iodb