added arg for db name, fixed colon namespace issue
sums over a span and then finds difference