Simple CRUD using Angular Js and IndexedDB