finished the basic db stuff for todo list