[sqlite] SQLite error 'attempt to write a readonly database' during insert?