Code for IndexedDB testing for phonegap