Also updates the library outside the main thread!.
Only when finishes successfully, saves changes to the database.