App now properly saves todo list items and categories to database