Fixes to OM db load script