Cosmetic changes to comply to our shell-style + fix remote db upgrade when you have powerdns_db_hostname in config

Change-Id: I5ea44b31b760cfc453ebc0f58f300f42812931ad