(#1207) - Switch to WebSQL if IDB is outdated

Certain Samsung devices are running a legacy
version of the IndexedDB spec.  This commit
detects the outdated API and reports IDB as
invalid, so we switch to WebSQL.