Add some Doxygen for sqlbase methods.
Fix #987. Use pipes, parens, and redirection properly to avoid a concatenated gzip mess in sql-dump.

The Oracle and SQL Server implementations of sql-dump need updating still. Help wanted.