Database Failed

In my chrome extension, the javascript injector, localStorage is used as the database to store the clients’ data. However, as localStorage support only data in string, information has to be stringified and parsed whenever saving and retrieving. The database seems unable to hold anymore data. It corrupted and became incorrect data. I need to rewrite the program and use WebSQL or IndexedDb to store the information.