open db in autocommit mode

This fixes a problem surfaced with the current 0.3.6 debian package, which uses debian libsqlcipher0.
After this is merged, I will cherry-pick this in the debian branch and rebuild the packages.