[#945] Rewrite database file and journal creation logic to create YDBAIM and YDBOCTO regions only after processing other regions
As part of the rewrite, make code cleaner, and benefit from small YottaDB enhancements made since the original code was written.
Edited by Narayanan Iyer