A pure indexeddb wrapper with angular's $q