Fix #1010. Don't delete .htaccess in config-export
Put back silent() method in SQL API

And remove $silent as a param to query() since it was not used. Callers can pass in $result-file if needed.