How to fix sqlite3.OperationalError: database is locked in Python | DevErrors