Rework database diagnostic module.

Special attention now given to...
* The charset chain from PW -> client -> connection -> DB -> results.
* The collation chain.
* Individual table charsets.
* Wasted space in the tables.