Assuming you have a file and a DB record pointing to that file, is there a way to make sure either of those has not been tampered with by somebody who has access to both?