work for 27/11

set ledger type for tables to differentiate between them
both drawers update
closed leaky dbs
cleaned up imports