Fixed unsanitized IP output from database (it was sanitized only before save)