When changing XMPP hostname, make sure user accounts get copied to new database. We are back to 2 ejabberd restarts though.