Collection.js is small but yet powerfull local database build on top of the localstorage.