misc
use IndexedDB Polyfill over WebSql to get indexed working on Phantomjs
fix tests