Change TaskAdapter

Make mDB as a argument when construct => better efficiency