Fix "Icinga\Logger\Logger not found"

The class was moved to Icinga\Application\Logger.
Fix that pgsql privileges were tested in case of mysql

refs #7163
Fix how password hashes are stored and retrieved in DbUserBackend