When deleting a database, related synchronizations are deleted first