bug-fix: perf improv, change count to sum, start

- perf improvement by switching to get_one() calls
- bug fixes: use activity record datetime when first
  assignment created as an operation, change count
  to sum function for in progress assignment count