improvements in db manager & ema method