when log out database, we should close corresponding editor part(Edit table).