db remove primary from inandout