A framework to persist and sync data to a polyglot persistence architecture