Data to Postgres importer working

In this version, we decided to add the accounts to the database before adding ledger, transactions and account_transactions. Adding of the accounts is not atomic to support concurrency, whereas adding the rest of the ledger is.