base dao and dialogs dao for working with indexeddb