dbi plugin: Put the row handling logic in an extra module.