Fixed problems with hostname (for windows) and database roles.