* Add utility to check for non migrated legacy db * code review changes * add unit tests for existsAndIsNotMigrated * ensure indexeddb is clean for each state