added create, delete, get, and update functionality for todo