Dummy app speed

This speeds up dummy app generation by as much as 50% over previous generations.

I also refactored the parameters passed to DummyGenerator to always supply a database.