Add a `purgeDatabase` method