Fix ticket 32, censor mysql info in debug, fix npe on login with a map with no regions selected.