repair iOS 8 Safari bug

iDB was broken in safari 7 and 8
falling back to websql until a better fix is in place.