move the todo construction/finding code to the todoDatabase