Sample PostgreSQL master/replica setup script