kalua: cgi-bin-sql: first output 'Content-Type'-header, than data - otherwise this can lead to 'wget: server returned error: HTTP/1.1 502 Bad Gateway'