Invoice getting saved

Invoice is getting saved but the indexeddb library included is more
complex to retrieve the invoices in order to make it more organised use
a new branch which is used test the new library