changed enviornment vars to DATAVIVA prefix
updated secex distance script to insert/update on duplicate for adding 0s to database