enforced orphan record cleanup in the data access package - fixes #7