Bump code verbosity and testability

Change-Id: I64b5beaed3d31ec4e99b59dc443f9f6ac88afb8b
Database configuration is abstract

Change-Id: Ic011de119537342845154d0f60e118890be0dca8
Correctly uni-encoded CSV export

Change-Id: Ic16c70cd822fa2cbc68d0abf6ffd55940701ea64
Merge remote-tracking branch 'origin/master' into deploy

Change-Id: I716a5180ff06ed1ed368d0551a789f696f8781d3