include query statement, rename dbConnect variables.
add config example file
update example
add call to grouping function
add an extra if statement to account for run number
add email function
reformat, add IPV6 detection function.