Secure SQL request and export-csv page