The Linux General Ledger includes this function which allows you to dump the complete
chart of accounts data and all transactions into a Postgres database.  The database is
automatically created when this function is run.