changed behaviour of database callback exists
fixes for unsavedChanges handling