database: remove unused typedefs

- caused compilation errors with gcc 4.9 (and apparently 4.8)
config: split formatting settings from knitting settings

- deal with the rename fallout across the code base