making sure database gets purged