All the little things

Fixes up the borken code that was broke for some reason.
Fixes displayed password in database config.