Moved schema, and todo class into separate file