Added a method to export the indexedDb database to json