Update sqlite, improve error handling.
Merge branch 'master' of https://github.com/jamesg/photoalbum