use task_logger to capture any database errors thrown in tasks

the `get_task_logger` already adds the task name, so the error
message is currently left as a dummy