Test failures in db_task_history

Two commits related to build failures in `db_task_history`