clears internal cache when db is dropped