Added shim for indexdb for IOS safari