Same code to turn perm request row result set into map.
A faster RNG for tests.
I like it better with app in the fn name.
Reads better with app-ident imo
Moving non-essential service functions to separate namespaces.
Extracting more db logic to db namespace.
I don't like refer all..
Moving get-app-by-ident to db, so that all result set -> map code is there.
We no longer use 'sys'.
putting transaction logic in db namespace
We don't really need a separate method here.