java/db: Fixing an issue with JSON export.
java/db: Actual multi-datacenter replication and automatic fallback is now working.