These should not be outside of the module definition, and more importantly firefox 31 will bail this window access of indexDB in use strict now.