changes to dbHandler and run chainer