Most likely the problem is that the process doesn't have permissions to write to daypilot.sqlite.
1. Trying adding the permissions.
2. Placing the DB file in a publicly accessible location is not a good idea. The tutorial stores it there for demo purposes but normally you will want to move it to another directory (or better, use a real database instead).