validator script to tidy projectdb