Finding accounting hash by key, de-pointerizing accounting_id and adding...

... accounting ids dynamically
Do we need calloc (zero initialize) or does malloc suffice?