Open IndexedDB to save data from server.
Add function to insert data in local database.
Add function to verify if exist data in local database.