How to fix SQLITE_NOMEM: A malloc() failed in SQLite | DevErrors