implemented database.clear