Fix an issue in the dropDatabase method