Added log entity, DAO and tests