can remove multiple todos at the same time by using mutex in sqlite, refactor main.c and move most of the logic to todo.c