Refactor for a bit more code clarity
Working remote data replication, does not support full data dump yet