controller with indexedDB implementation