Tool for resynchronizing a Postgres database after failover