mv logging to DAO classes

Change-Id: I59f167c0ec04758ea633e39b1d2d40940e8455db