added indexed db functionality that works in FF: