added try catch to idbstore