fixes to allow update and delete to work

- ensure cursor is in the correct mode
- add db implementation
Merge pull request #3 from jeo/gpkg-update-delete-fixes

fixes to allow update and delete to work