converted Task to use a mongo repository