Let's have some package fun

Just an example to see how things can be simplified.

This can't be merged automatically but you can see some of the changes which could be made.

the nice thing about this is that it could potentially be a step toward removing a lot of the linkages between the three functions, which will make this project brittle. We should be able to independently run the db, activity and gadget functions and pass output back and forth as needed. 

There's also some bugs in the original code, but I'll put together a less dramatic PR for those later.