Trying to fix sqlite3 error