Be consistent with timeouts.

Use appropriate timeouts for potentially long commands
vs. commands expecte to be short.
[PostgreSQL] Use a transaction on the source database.

Use a transaction on the source database when importing to get transactionally consistent data.

Fixes #14.