switched to indexeddb for the model storage