Escape Index names so that special characters are allowed in Indexes also

- Also added SQL statement when SQL error occurs


Was geting IndexedDB polyfill integrated with pouchdb (pouchdb.js), noticed this error. Had the same error in my IndexedDB also - https://github.com/axemclion/IndexedDBShim/commit/df8e5cb1c6366454546826a2f43a0e391c8ec2b8