Very rough draft of the database_completeness script just so I can get it on the VM.