Add option to change journal mode for SQLite based storage, fixes #115