uploads to indexedDB