adding new DB code for todohardness comparator