Synchronize indexeddb to mongodb with client side encryption support