Saved the DB before switching editors