completed script; db kinda works, but doesn't -- have to add SoldItem
somehow to get sums