Add function to read data from local database.
Load data in local database when it exists.
Correcting name of fields of inserted date and changed date to save in local database.