Enable autocommit when the database is switched.