Sql journ and model implementation.
Add alloc_id to pool.
Add alloc_id to journ.
Journ and model factory smart-ptrs.