db/scratch.db is not writable