Kindle Fire compatibility

I'm not expecting this pull request to be approved. Just thought I'd mention somewhere that Kindle Fire uses an old copy of Chrome for its Amazon Silk browser. It's nearly impossible to debug, but I finally figured out that the callback was setVersion and the readonly setting expected the old integer constants. So I've made those respective hacks to the current db.js code, in case anyone wants them.