When reporting database errors in CGI mode, make sure the CGI header
comes out first.