Added purgeDatabase method

Added method for purging the database only.