commented out indexdb code, since it wasn    working on safari