remove ref to database