Improved measure util.
Enriched delete util with paranoid checks.
Added retry mechanism on database initialization.