Minor - format code removing unused variables see #6715
Security fixes adding Database::escape_string see #6715
Minor - format code see #6715
Adding remove_XSS function see #6715
Minor format code see #6715
Security fixes adding Database::escape_string #6715