Close cursor / db correctly to ensure transaction commits
Add absolutely Noddy web interface