def synchronous_switch_listener(dbapi_conn, connection_rec):
 dbapi_conn.execute('PRAGMA synchronous = OFF')

def synchronous_switch_listener ( dbapi_conn , connection_rec ) : dbapi_conn . execute ( 'PRAGMA synchronous = OFF' )
switch sqlite connections to non-synchronous mode .