Optimize dropping the whole database.