made chainer pipelined
added db definition