Add clear() method to clear database.