functioning todo list that stores in a db