remove records from db when container is removed.