upgrade api to implement saving new todos